package org.eclipse.ea.requisit.manager.utils;

import java.util.Comparator;

import org.eclipse.ea.requisit.manager.parser.visitor.util.NamedLineMethod;

public class MethodComparator implements Comparator<NamedLineMethod> {

	@Override
	public int compare(NamedLineMethod method1, NamedLineMethod method2) {
		
		if(method1.getLine() < method2.getLine()){
			return 1;
		}
		
		if(method1.getLine() > method2.getLine()){
			return -1;
		}
		
		return 0;	
	}

}
